/// id : 3
/// targetCode : "SP_BRAND"
/// targetCodeName : "品牌方"
/// companyId : 6188
/// companyName : "杰慧贵妃"
/// companySize : "COMPANY_SIZE_10_50"
/// companySizeName : "10~50"
/// creditCode : null
/// businessLicenceUrl : "redOrgman/b0958839-eb25-4fcc-b4af-42e247293c48.jpg?1611728554225"
/// companyLogoUrl : "redOrgman/f1acebaf-6409-4c20-9815-09489a1fbad8.jpg?1611728493978"
/// bossName : "智杰"
/// bossTelephone : "15896774543"
/// bossWeChat : "15867654323"
/// bossEmail : "76544@qq.com"
/// province : 140000
/// city : 140200
/// district : 140211
/// address : "南郊公园"
/// companyProfile : "慧贵妃当初不回家"
/// refuseReason : null
/// userId : 12300
/// status : 4
/// kvImage : null
/// preferential : null
/// videoUrl : null
/// videoImage : null
/// serviceScope : null
/// editStatus : 0
/// editRefuseReason : null
/// actualPageView : 16
/// collectCount : 1
/// collectFlag : false
/// caseList : []
/// skuId : 551
/// agreementId : null

class CooperationDetailMo {
  int? _id;
  String? _targetCode;
  String? _targetCodeName;
  int? _companyId;
  String? _companyName;
  String? _companySize;
  String? _companySizeName;
  String? _creditCode;
  String? _businessLicenceUrl;
  String? _companyLogoUrl;
  String? _bossName;
  String? _bossTelephone;
  String? _bossWeChat;
  String? _bossEmail;
  int? _province;
  int? _city;
  int? _district;
  String? _address;
  String? _companyProfile;
  String? _refuseReason;
  int? _userId;
  int? _status;
  String? _kvImage;
  String? _preferential;
  String? _videoUrl;
  String? _videoImage;
  String? _serviceScope;
  int? _editStatus;
  String? _editRefuseReason;
  int? _actualPageView;
  int? collectCount;
  bool? _collectFlag;
  List<CaseListMo>? _caseList;
  int? _skuId;
  String? _agreementId;

  int? get id => _id;

  String? get targetCode => _targetCode;

  String? get targetCodeName => _targetCodeName;

  int? get companyId => _companyId;

  String? get companyName => _companyName;

  String? get companySize => _companySize;

  String? get companySizeName => _companySizeName;

  String? get creditCode => _creditCode;

  String? get businessLicenceUrl => _businessLicenceUrl;

  String? get companyLogoUrl => _companyLogoUrl;

  String? get bossName => _bossName;

  String? get bossTelephone => _bossTelephone;

  String? get bossWeChat => _bossWeChat;

  String? get bossEmail => _bossEmail;

  int? get province => _province;

  int? get city => _city;

  int? get district => _district;

  String? get address => _address;

  String? get companyProfile => _companyProfile;

  String? get refuseReason => _refuseReason;

  int? get userId => _userId;

  int? get status => _status;

  String? get kvImage => _kvImage;

  String? get preferential => _preferential;

  String? get videoUrl => _videoUrl;

  String? get videoImage => _videoImage;

  String? get serviceScope => _serviceScope;

  int? get editStatus => _editStatus;

  String? get editRefuseReason => _editRefuseReason;

  int? get actualPageView => _actualPageView;


  bool? get collectFlag => _collectFlag;

  List<CaseListMo>? get caseList => _caseList;

  int? get skuId => _skuId;

  String? get agreementId => _agreementId;

  CooperationDetailMo(
      {int? id,
      String? targetCode,
      String? targetCodeName,
      int? companyId,
      String? companyName,
      String? companySize,
      String? companySizeName,
      String? creditCode,
      String? businessLicenceUrl,
      String? companyLogoUrl,
      String? bossName,
      String? bossTelephone,
      String? bossWeChat,
      String? bossEmail,
      int? province,
      int? city,
      int? district,
      String? address,
      String? companyProfile,
      String? refuseReason,
      int? userId,
      int? status,
      String? kvImage,
      String? preferential,
      String? videoUrl,
      String? videoImage,
      String? serviceScope,
      int? editStatus,
      String? editRefuseReason,
      int? actualPageView,
      int? collectCount,
      bool? collectFlag,
      List<CaseListMo>? caseList,
      int? skuId,
      String? agreementId}) {
    _id = id;
    _targetCode = targetCode;
    _targetCodeName = targetCodeName;
    _companyId = companyId;
    _companyName = companyName;
    _companySize = companySize;
    _companySizeName = companySizeName;
    _creditCode = creditCode;
    _businessLicenceUrl = businessLicenceUrl;
    _companyLogoUrl = companyLogoUrl;
    _bossName = bossName;
    _bossTelephone = bossTelephone;
    _bossWeChat = bossWeChat;
    _bossEmail = bossEmail;
    _province = province;
    _city = city;
    _district = district;
    _address = address;
    _companyProfile = companyProfile;
    _refuseReason = refuseReason;
    _userId = userId;
    _status = status;
    _kvImage = kvImage;
    _preferential = preferential;
    _videoUrl = videoUrl;
    _videoImage = videoImage;
    _serviceScope = serviceScope;
    _editStatus = editStatus;
    _editRefuseReason = editRefuseReason;
    _actualPageView = actualPageView;
    collectCount = collectCount;
    _collectFlag = collectFlag;
    _caseList = caseList;
    _skuId = skuId;
    _agreementId = agreementId;
  }

  CooperationDetailMo.fromJson(dynamic json) {
    _id = json['id'];
    _targetCode = json['targetCode'];
    _targetCodeName = json['targetCodeName'];
    _companyId = json['companyId'];
    _companyName = json['companyName'];
    _companySize = json['companySize'];
    _companySizeName = json['companySizeName'];
    _creditCode = json['creditCode'];
    _businessLicenceUrl = json['businessLicenceUrl'];
    _companyLogoUrl = json['companyLogoUrl'];
    _bossName = json['bossName'];
    _bossTelephone = json['bossTelephone'];
    _bossWeChat = json['bossWeChat'];
    _bossEmail = json['bossEmail'];
    _province = json['province'];
    _city = json['city'];
    _district = json['district'];
    _address = json['address'];
    _companyProfile = json['companyProfile'];
    _refuseReason = json['refuseReason'];
    _userId = json['userId'];
    _status = json['status'];
    _kvImage = json['kvImage'];
    _preferential = json['preferential'];
    _videoUrl = json['videoUrl'];
    _videoImage = json['videoImage'];
    _serviceScope = json['serviceScope'];
    _editStatus = json['editStatus'];
    _editRefuseReason = json['editRefuseReason'];
    _actualPageView = json['actualPageView'];
    collectCount = json['collectCount'];
    _collectFlag = json['collectFlag'];
    if (json['caseList'] != null) {
      _caseList = [];
      json['caseList'].forEach((v) {
        _caseList?.add(CaseListMo.fromJson(v));
      });
    }
    _skuId = json['skuId'];
    _agreementId = json['agreementId']?.toString() ?? "0";
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map['id'] = _id;
    map['targetCode'] = _targetCode;
    map['targetCodeName'] = _targetCodeName;
    map['companyId'] = _companyId;
    map['companyName'] = _companyName;
    map['companySize'] = _companySize;
    map['companySizeName'] = _companySizeName;
    map['creditCode'] = _creditCode;
    map['businessLicenceUrl'] = _businessLicenceUrl;
    map['companyLogoUrl'] = _companyLogoUrl;
    map['bossName'] = _bossName;
    map['bossTelephone'] = _bossTelephone;
    map['bossWeChat'] = _bossWeChat;
    map['bossEmail'] = _bossEmail;
    map['province'] = _province;
    map['city'] = _city;
    map['district'] = _district;
    map['address'] = _address;
    map['companyProfile'] = _companyProfile;
    map['refuseReason'] = _refuseReason;
    map['userId'] = _userId;
    map['status'] = _status;
    map['kvImage'] = _kvImage;
    map['preferential'] = _preferential;
    map['videoUrl'] = _videoUrl;
    map['videoImage'] = _videoImage;
    map['serviceScope'] = _serviceScope;
    map['editStatus'] = _editStatus;
    map['editRefuseReason'] = _editRefuseReason;
    map['actualPageView'] = _actualPageView;
    map['collectCount'] = collectCount;
    map['collectFlag'] = _collectFlag;
    if (_caseList != null) {
      map['caseList'] = _caseList?.map((v) => v.toJson()).toList();
    }
    map['skuId'] = _skuId;
    map['agreementId'] = _agreementId;
    return map;
  }
}

class CaseListMo {
  int? _id;
  int? _companyId;
  String? _title;
  String? _content;
  String? _images;
  String? _status;

  int? get id => _id;

  int? get companyId => _companyId;

  String? get title => _title;

  String? get content => _content;

  String? get images => _images;

  String? get status => _status;

  CaseListMo(
      {int? id,
      int? companyId,
      String? title,
      String? content,
      String? images,
      String? status}) {
    _id = id;
    _companyId = companyId;
    _title = title;
    _content = content;
    _images = images;
    _status = status;
  }

  CaseListMo.fromJson(dynamic json) {
    _id = json['id'];
    _companyId = json['companyId'];
    _title = json['title'];
    _content = json['content'];
    _images = json['images'];
    _status = json['status']?.toString() ?? "0";
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map['id'] = _id;
    map['companyId'] = _companyId;
    map['title'] = _title;
    map['content'] = _content;
    map['images'] = _images;
    map['status'] = _status;
    return map;
  }
}
